import React from "react";
import logo from '../../logo.svg'
import './style.css'
const MyHeader: React.FC = () => {
  const nickname = localStorage.getItem('nickname')
  const avator = localStorage.getItem('avator')

  
  return (
    <div className="header">
      <div className="left">
        <img src={logo} alt="" />
      </div>
      <div className="right">
        <img src={avator || logo} alt="" />
        <span>{ nickname || '张三' }</span>
      </div>
    </div>
  );
};

export default MyHeader;
